package com.rimi.service.impl;

import com.rimi.bean.Comments;
import com.rimi.mapper.CommentsMapper;
import com.rimi.mapper.UserMapper;
import com.rimi.service.CommentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @
 * @author:liangLi
 * @time:2020/7/7 16:09
 */
@Service
public class CommentsServiceImpl implements CommentsService {

    @Autowired
    CommentsMapper commentsMapper;

    @Override
    public Integer addCommentSInfo(Comments comments) {
        return commentsMapper.addCommentSInfo(comments);
    }

    @Override
    public List<Comments> getCommentSInfo() {

        return commentsMapper.getCommentSInfo();
    }
}
